package com.jxs.android.cmcc.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class TableDataBaseHolder extends SQLiteOpenHelper {

	static interface DB {
		public static String NAME = "cmcc_icloud_table.db";
		public static int VERSION = 1;
	}

	public TableDataBaseHolder(Context context) {
		super(context, DB.NAME, null, DB.VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		TableHolder.creater(db);
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL("DROP TABLE IF EXISTS " + TableHolder.Table.TABLE_NAME);
		onCreate(db);
	}

}
